import request from '@/utils/request'

// 查询设计师列表
export function listDesigners(query) {
  return request({
    url: '/cms/designers/list',
    method: 'get',
    params: query
  })
}

// 查询设计师详细
export function getDesigners(id) {
  return request({
    url: '/cms/designers/' + id,
    method: 'get'
  })
}

// 新增设计师
export function addDesigners(data) {
  return request({
    url: '/cms/designers',
    method: 'post',
    data: data
  })
}

// 修改设计师
export function updateDesigners(data) {
  return request({
    url: '/cms/designers',
    method: 'put',
    data: data
  })
}

// 删除设计师
export function delDesigners(id) {
  return request({
    url: '/cms/designers/' + id,
    method: 'delete'
  })
}
